#include<stdio.h>

int main()
{
	int a, b, c,yubo=0;
	scanf_s("%d%d%d", &a, &b, &c);
	if (a > b)
	{
		yubo = a;
		a = b;
		b = yubo;
	}
	if (a > c)
	{
		yubo = a;
		a = c;
		c = yubo;
	}
	if (b > c)
	{
		yubo = b;
		b = c;
		c = yubo;
	}
	printf("%d,%d,%d\n", a, b, c);
	return 0;
}